package com.cheer.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分明细
 * 
 * @author cheer
 */
@Data
@TableName("oa_integral")
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class OaIntegralEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 
	 */
	private Integer type;
	/**
	 * 
	 */
	private Integer itemsId;
	/**
	 * 
	 */
	private Integer integral;
	/**
	 * 
	 */
	private String openid;
	/**
	 * 
	 */
	private Date addTime;


	public OaIntegralEntity(Integer type, Integer integral, String openid,  Integer itemsId) {
		this.type = type;
		this.integral = integral;
		this.openid = openid;
		this.itemsId = itemsId;
	}
}
